<script setup lang="ts">
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import en from 'element-plus/es/locale/lang/en';
import { computed } from 'vue';
import { useAllDataStore } from '@/stores'
const store = useAllDataStore();
const currentLocale = computed(() => {
  return store.getLocale() === 'zh' ? zhCn : en;
});

</script>

<template>
  <el-config-provider :locale="currentLocale">
  <RouterView />   
</el-config-provider>

</template>

<style scoped>
/* 样式可根据需求添加 */
</style>